package com.xyht.sca_s.student_manage_system.modules.workApplication.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.common.desEncodeAndDecode.annotation.SecretBody;
import com.xyht.sca_s.student_manage_system.modules.workApplication.entity.vo.SmsWorkApplicationProcessVO;
import com.xyht.sca_s.student_manage_system.modules.workApplication.service.SmsWorkApplicationProcessService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2023-05-17
 */
@RestController
@RequestMapping("/workApplication/smsWorkApplicationProcess")
@SecretBody
public class SmsWorkApplicationProcessController {
    @Autowired
    SmsWorkApplicationProcessService smsWorkApplicationProcessService;
    @ApiModelProperty(value = "流程修改")
    @PostMapping("/update")
    public ResponseResult updateWorkApplicationProcess(@RequestBody SmsWorkApplicationProcessVO processVO) {
        return smsWorkApplicationProcessService.updateWorkApplicationProcess(processVO);
    }

    @ApiModelProperty(value = "流程列表")
    @GetMapping("/list")
    public ResponseResult getWorkApplicationProcessList() {
        return smsWorkApplicationProcessService.getWorkApplicationProcessList();
    }
}

